const express = require('express')
const router = express.Router()
const booksControl = require('./booksControl')


router.get('/books', booksControl.queryBooks)
router.post('/addBook', booksControl.addBook)
router.delete('/delBook/:id', booksControl.delBook)
router.get('/book/:id', booksControl.queryBook)
router.put('/updateBook', booksControl.updateBook)

module.exports = router